home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1993 / Internet Info CD-ROM (Walnut Creek) (1993).iso / networking / ip / manage / snmp / cmu-snmp-patches.shar / mib.c.diff next >
Encoding:
Text File  |  1992-01-15  |  2.0 KB  |  70 lines

  1. ===================================================================
  2. RCS file: /s/usr2/K/repo/tools/cmu-snmp/snmplib/mib.c,v
  3. retrieving revision 1.1
  4. diff -c -r1.1 mib.c
  5. *** /tmp/,RCSt1a22330    Tue Sep 24 20:22:57 1991
  6. --- mib.c    Tue Aug 20 22:54:27 1991
  7. ***************
  8. *** 93,100 ****
  9. --- 93,102 ----
  10.           *buf++ = '.';
  11.           cp++;
  12.       }
  13. + #if 0
  14.       if ((x % 48) == 47)
  15.           *buf++ = '\n';
  16. + #endif
  17.       }
  18.       *buf = '\0';
  19.   }
  20. ***************
  21. *** 396,402 ****
  22.   struct tree *get_symbol();
  23.   
  24.   oid RFC1066_MIB[] = { 1, 3, 6, 1, 2, 1 };
  25. ! unsigned char RFC1066_MIB_text[] = ".iso.org.dod.internet.mgmt.mib";
  26.   struct tree *Mib;
  27.   
  28.   init_mib()
  29. --- 398,412 ----
  30.   struct tree *get_symbol();
  31.   
  32.   oid RFC1066_MIB[] = { 1, 3, 6, 1, 2, 1 };
  33. ! char RFC1066_MIB_text[] = ".iso.org.dod.internet.mgmt.mib";
  34. ! /* phil@Shiva.COM; */
  35. ! #define RFC1066_MIB_text_len (sizeof(RFC1066_MIB_text)-1)
  36. ! /* phil@Shiva.COM; */
  37. ! char RFC1158_MIB_text[] = ".iso.org.dod.internet.mgmt.mib-2";
  38. ! #define RFC1158_MIB_text_len (sizeof(RFC1158_MIB_text)-1)
  39.   struct tree *Mib;
  40.   
  41.   init_mib()
  42. ***************
  43. *** 671,679 ****
  44.       *buf = '.';    /* this is a fully qualified name */
  45.       subtree = get_symbol(objid, objidlen, subtree, buf + 1);
  46.       cp = buf;
  47. !     if ((strlen(buf) >= strlen((char *)RFC1066_MIB_text)) && !bcmp(buf, (char *)RFC1066_MIB_text,
  48. !     strlen((char *)RFC1066_MIB_text))){
  49. !         cp += sizeof(RFC1066_MIB_text);
  50.       }
  51.       printf("Name: %s\n", cp);
  52.       *buf = '\0';
  53. --- 681,693 ----
  54.       *buf = '.';    /* this is a fully qualified name */
  55.       subtree = get_symbol(objid, objidlen, subtree, buf + 1);
  56.       cp = buf;
  57. !     if ((strlen(buf) >= RFC1158_MIB_text_len)
  58. !     && !bcmp(buf, (char *)RFC1158_MIB_text, RFC1158_MIB_text_len)){
  59. !         cp += RFC1158_MIB_text_len+1;
  60. !     }
  61. !     else if ((strlen(buf) >= RFC1066_MIB_text_len)
  62. !     && !bcmp(buf, (char *)RFC1066_MIB_text, RFC1066_MIB_text_len)){
  63. !         cp += RFC1066_MIB_text_len+1;
  64.       }
  65.       printf("Name: %s\n", cp);
  66.       *buf = '\0';
  67.